import Layout from "@/views/layout.vue";

export default {
    routes: [
        {
            path: "/",
            component: Layout,
            redirect: "/scanToFill",
            children: [
                {
                    path: "/scanToFill",
                    name: 'scanToFill',
                    meta: {
                        title: "扫码填报",
                        index: 1,
                    },
                    component: () => import("@/views/worker/components/scanToFill.vue"),
                },


                // ***********************************日常清运
                {
                    path: "/dailyClean",
                    name: 'dailyClean',
                    meta: {
                        title: "日常清运",
                        index: 1,
                    },
                    component: () => import("@/views/worker/components/dailyClean/dailyClean.vue"),
                },
                {
                    path: "/appointClean",
                    name: 'appointClean',
                    meta: {
                        title: "预约清运",
                        index: 1,
                    },
                    component: () => import("@/views/worker/components/appointClean/appointClean.vue"),
                },
                {
                    path: "/location",
                    name: 'location',
                    meta: {
                        title: "日常清运",
                        index: 2,
                    },
                    component: () => import("@/views/worker/components/dailyClean/location.vue"),
                },
                {
                    path: "/dailyFill",
                    name: 'dailyFill',
                    meta: {
                        title: "日常清运",
                        index: 2,
                    },
                    component: () => import("@/views/worker/components/dailyClean/dailyFill.vue"),
                },
                {
                    path: "/appointFill",
                    name: 'appointFill',
                    meta: {
                        title: "预约清运",
                        index: 2,
                    },
                    component: () => import("@/views/worker/components/appointClean/appointFill.vue"),
                },
            ],
        },
        {
            path: '/scanCode',
            name: 'scanCode',
            meta: {
                title: "扫码",
                index: 2,
            },
            component: () => import("@/views/worker/components/scanCode.vue"),
        }
    ],
    tabList: [
        {
            name: '扫码填报',
            path: '/scanToFill'
        },
        {
            name: '日常清运',
            path: '/dailyClean'
        },
        {
            name: '预约清运',
            path: '/appointClean'
        }
    ]
}
// export default {
//     path: "/",
//     component: Layout,
//     redirect: "/home",
//     children: [
//         {
//             path: "/home",
//             name: 'home',
//             meta: {
//                 title: "沿街商铺",
//                 index: 1,
//             },
//             component: worker,
//         },
//         {
//             path: "/scanCode",
//             name: 'scanCode',
//             meta: {
//                 title: "扫码",
//                 index: 1,
//             },
//             component: scanCode,
//         },
//     ],
// };
